{extend name="layout_modal" /}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('data_save')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">链接</label>
          <input type="text" class="form-control" placeholder="链接" name="url">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">上级菜单</label>
          <select name="pid" class="form-control">
            {volist name="Menus" id="v"}
            <option value="{$v.id}">{$v.title_show}</option>
            {/volist}
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">分组</label>
          <input type="text" class="form-control" placeholder="分组" name="group">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否隐藏</label>
          <div>
            <label><input type="radio" name="hide" checked value="1"> 是</label>
            <label><input type="radio" name="hide" value="0"> 否</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">仅开发者可见</label>
          <div>
            <label><input type="radio" name="is_dev" value="1"> 是</label>
            <label><input type="radio" name="is_dev" value="0" checked=""> 否</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">自动增加子菜单</label>
          <div>
            <label><input type="checkbox" name="child[]" value="add"> 新增</label>
            <label><input type="checkbox" name="child[]" value="edit"> 编辑</label>
            <label><input type="checkbox" name="child[]" value="delete"> 删除</label>
            <label><input type="checkbox" name="child[]" value="cache"> 生成缓存</label>
          </div>
        </div>
      </div>
      <!-- /.box-body -->
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}